package com.demo.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Resource
@Data
@AllArgsConstructor
@NoArgsConstructor
@Service
public class GlobalKey {

    /**
     * 统一工作模式默认交换机 routingKey
     */

    @Value("${rabbit.direct.exchange}")
    private String directExchange;

    /**
     * 统一扇出模式默认交换机 routingKey
     */

    @Value("${rabbit.fount.exchange}")
    private String fountExchange;

    /**
     * 统一路由模式默认交换机 routingKey
     */

    @Value("${rabbit.headers.exchange}")
    private String headersExchange;

    /**
     * 统一主题模式默认交换机 routingKey
     */

    @Value("${rabbit.topic.exchange}")
    private String topicExchange;

    /**
     * 延时交换机
     */
    @Value("${rabbit.delay.exchange}")
    private String delayExchange;

}
